.tab-content{
    display: flex;
    align-items: center;
    text-align: center;
    height: 40px;
}
.tab-content .item{
    flex: 1;
}
.tab-content .item.active{
    color: red;
}
.tab-content .item.active .text{
    border-bottom: 3px solid red;
    padding: 3px;
}